from math import gcd
a, b = [int(i) for i in input().split()]
print(a // gcd(a, b) * b)